import request from '@/sheep/request';

const CommentApi = {
	// 获得商品评价分页
	statistics: (spuId) => {
		return request({
			url: '/product/comment/statistics',
			method: 'GET',
			params: {
				spuId,
			},
			custom: {
				showLoading: false,
				showError: false,
			},
		});
	},
	getCommentPage: (spuId, pageNo, pageSize, type) => {
		return request({
			url: '/product/comment/page',
			method: 'GET',
			params: {
				spuId,
				pageNo,
				pageSize,
				type,
			},
			custom: {
				showLoading: false,
				showError: false,
			},
		});
	},
};
export default CommentApi;